import axios from 'axios'
import { apiCustomer } from './base'

export async function estimate(f?: any, t?: any) {
  try {
    axios.defaults.headers.common.Authorization = `Bearer ${localStorage.getItem('jwt-token')}`
    const response = await axios.get(`${apiCustomer}/customer/estimate-price/${f}/${t}`)
    return response.data
  } catch (error) {
    return error
  }
}